home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / TEC 1.4 / SampleCode / UnicodeHub / UnicodeHubPrefix.h < prev   
Encoding:
Text File  |  1998-09-25  |  2.9 KB  |  82 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    UnicodeHubPrefix.h                 ©1995 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. // Include precompiled headers.
  8. #ifdef powerc
  9. #include <PP_MacHeadersPPC>
  10. #else
  11. #include <PP_MacHeaders68K>
  12. #endif
  13.  
  14.  
  15. // Define debugging symbols.
  16. #define Debug_Throw
  17. #define Debug_Signal
  18. //#define Debug_Signal debugAction_LowLevelDebugger
  19.  
  20. // Define the use of new classes for
  21. // RegisterAllPPClasses (in PPobClasses.cp).
  22. #define PP_NewClasses
  23.  
  24. // Include the PowerPlant prefix file.
  25. #include <PP_Prefix.h>
  26.  
  27.  
  28. typedef UInt8 *BytePtr;
  29.  
  30. typedef UInt32 ByteCount;
  31.  
  32. typedef UInt32 ItemCount;
  33.  
  34. typedef UInt32 OptionBits;
  35.  
  36. typedef short RegionCode;
  37.  
  38. typedef UInt32 ByteOffset;
  39.  
  40. typedef const void *ConstLogicalAddress;
  41.  
  42. #if 0
  43. enum {
  44.                                                                 /* general text errors*/
  45.     kTextUnsupportedEncodingErr    = -8738,                        /* specified encoding not supported for this operation*/
  46.     kTextMalformedInputErr        = -8739,                        /* in DBCS, for example, high byte followed by invalid low byte*/
  47.     kTextUndefinedElementErr    = -8740,                        /* text conversion errors*/
  48.     kTECMissingTableErr            = -8745,
  49.     kTECTableChecksumErr        = -8746,
  50.     kTECTableFormatErr            = -8747,
  51.     kTECCorruptConverterErr        = -8748,                        /* invalid converter object reference*/
  52.     kTECNoConversionPathErr        = -8749,
  53.     kTECBufferBelowMinimumSizeErr = -8750,                        /* output buffer too small to allow processing of first input text element*/
  54.     kTECArrayFullErr            = -8751,                        /* supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small*/
  55.     kTECBadTextRunErr            = -8752,
  56.     kTECPartialCharErr            = -8753,                        /* input buffer ends in the middle of a multibyte character, conversion stopped*/
  57.     kTECUnmappableElementErr    = -8754,
  58.     kTECIncompleteElementErr    = -8755,                        /* text element may be incomplete or is too long for internal buffers*/
  59.     kTECDirectionErr            = -8756,                        /* direction stack overflow, etc.*/
  60.     kTECGlobalsUnavailableErr    = -8770,                        /* globals have already been deallocated (premature TERM)*/
  61.     kTECItemUnavailableErr        = -8771,                        /* item (e.g. name) not available for specified region (& encoding if relevant)*/
  62.                                                                 /* text conversion status codes*/
  63.     kTECUsedFallbacksStatus        = -8783,
  64.     kTECNeedFlushStatus            = -8784,
  65.     kTECOutputBufferFullStatus    = -8785,                        /* output buffer has no room for conversion of next input text element (partial conversion)*/
  66.                                                                 /* deprecated error & status codes for low-level converter*/
  67.     unicodeChecksumErr            = -8769,
  68.     unicodeNoTableErr            = -8768,
  69.     unicodeVariantErr            = -8767,
  70.     unicodeFallbacksErr            = -8766,
  71.     unicodePartConvertErr        = -8765,
  72.     unicodeBufErr                = -8764,
  73.     unicodeCharErr                = -8763,
  74.     unicodeElementErr            = -8762,
  75.     unicodeNotFoundErr            = -8761,
  76.     unicodeTableFormatErr        = -8760,
  77.     unicodeDirectionErr            = -8759,
  78.     unicodeContextualErr        = -8758,
  79.     unicodeTextEncodingDataErr    = -8757
  80. };
  81. #endif
  82.